FROM maven:3-jdk-8
LABEL maintainer="Ghostry <ghostry.green@gmail.com>"

ADD pom.xml /data/pom.xml
ADD src/main/java/com/ng8866/gateway/GatewayApplication.java /data/src/main/java/com/ng8866/gateway/GatewayApplication.java

RUN  cd /data \
    && mvn package clean
